package com.luoxiang.socialandroid.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.luoxiang.socialandroid.R
import com.luoxiang.socialandroid.bean.ListReward

/**
 * Author: fuxinbo

 * Date: 2023/2/10

 * Description: 榜单说明适配器
 */
class IllustrateAdapter :
    BaseQuickAdapter<ListReward, BaseViewHolder>(R.layout.item_illustrate_reward) {

    override fun convert(holder: BaseViewHolder, item: ListReward) {
        holder.setText(R.id.textIndex, item.ranking)
        holder.setText(R.id.textReward, "${item.num}")
    }
}